package com.education.wisdom.service;


import com.education.wisdom.pojo.Livebroadcast;

import java.util.List;
import java.util.Map;

/**
 * 达人直播资源 服务层
 *
 * @author ruoyi
 * @date 2019-02-16
 */
public interface ILivebroadcastService {
    /**
     * 查询达人直播资源信息
     *
     * @param id 达人直播资源ID
     * @return 达人直播资源信息
     */
    public Livebroadcast selectLivebroadcastById(Integer id);

    /**
     * 查询达人直播资源列表
     *
     * @param livebroadcast 达人直播资源信息
     * @return 达人直播资源集合
     */
    public List<Livebroadcast> selectLivebroadcastList(Livebroadcast livebroadcast);

    /**
     * 新增达人直播资源
     *
     * @param livebroadcast 达人直播资源信息
     * @return 结果
     */
    public int insertLivebroadcast(Livebroadcast livebroadcast);

    /**
     * 修改达人直播资源
     *
     * @param livebroadcast 达人直播资源信息
     * @return 结果
     */
    public int updateLivebroadcast(Livebroadcast livebroadcast);

    /**
     * 删除达人直播资源信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteLivebroadcastByIds(String ids);

//    public Livebroadcast selectLiveShow(Map<String, Object> map);
//
//    public List<Livebroadcast> selectLiveShows();
//
    List<Livebroadcast> selectShowListByType(Map<String, Object> map);
//
//    public Livebroadcast selectIsTake(Map<String, Object> map);
//
//    List<Livebroadcast> selectByStatus(Map<String, Object> map);

    List<Livebroadcast> selectByLike(String name);

    List<Livebroadcast> selectLivebroadcastByCatalogLiveCatalogId(Map<String, Object> map);

    List<Livebroadcast> selectByCatalogId(Integer catalogId);

    List<Livebroadcast> selectByUserId(String userId);
}
